|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.tournament.Tournament
public class Tournament
This class stores all tournament info (protocol, list of profiles, list of agents, etc.)
This is then converted into a list of Protocols using getSessions().
These Protocols (which are actually just negotiation sessions) are then run by TournamentRunner,
one by one, in TournamentRunner.run().
(Tournament contains the information for only one negotiation if you choose Negotiation Session!).
Only ONE ProfileValue is allowed in the variables.
Only TWO AgentValues are allowed.
| Field Summary | |
|---|---|
int |
TournamentNumber
TournamentNumber is used to give a unique reference to this tournament to the user. |
static int |
VARIABLE_AGENT_A
|
static int |
VARIABLE_AGENT_B
|
static int |
VARIABLE_DB_LOCATION
|
static int |
VARIABLE_DB_PASSWORD
|
static int |
VARIABLE_DB_SESSIONNAME
|
static int |
VARIABLE_DB_USER
|
static int |
VARIABLE_DECOUPLED_A
|
static int |
VARIABLE_DECOUPLED_B
|
static int |
VARIABLE_NUMBER_OF_RUNS
|
static int |
VARIABLE_PROFILE
|
static int |
VARIABLE_PROTOCOL
|
static int |
VARIABLE_TOURNAMENT_OPTIONS
|
| Constructor Summary | |
|---|---|
Tournament()
|
|
| Method Summary | |
|---|---|
java.util.ArrayList<AgentVariable> |
getAgentVars()
|
java.util.ArrayList<BOAagentInfo> |
getBOAagentA()
|
java.util.ArrayList<BOAagentInfo> |
getBOAagentB()
|
java.util.ArrayList<AgentVariable> |
getDecoupledAgentVars()
Converts the descriptions of the BOA framework agents to actual agents compatible with Genius. |
int |
getNumberOfSessions()
|
java.util.HashMap<java.lang.String,java.lang.Integer> |
getOptions()
|
java.util.ArrayList<AssignedParameterVariable> |
getParametersOfAgent(AgentRepItem agent,
java.lang.String name)
|
java.util.ArrayList<ProfileRepItem> |
getProfiles()
Get the profiles that are available. |
ProtocolRepItem |
getProtocol()
|
int |
getRounds()
Returns how many times each session is repeated in a tournament. |
java.util.ArrayList<Protocol> |
getSessions()
Get all combinations of agents, domains, etc. |
java.util.ArrayList<TournamentVariable> |
getVariables()
|
void |
resetTournament()
Throw away all calculated sessions to allow serialization. |
void |
setBOAagentA(java.util.ArrayList<BOAagentInfo> BOAagentList)
|
void |
setBOAagentB(java.util.ArrayList<BOAagentInfo> BOAagentList)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int TournamentNumber
public static final int VARIABLE_PROTOCOL
public static final int VARIABLE_PROFILE
public static final int VARIABLE_AGENT_A
public static final int VARIABLE_AGENT_B
public static final int VARIABLE_NUMBER_OF_RUNS
public static final int VARIABLE_TOURNAMENT_OPTIONS
public static final int VARIABLE_DECOUPLED_A
public static final int VARIABLE_DECOUPLED_B
public static final int VARIABLE_DB_LOCATION
public static final int VARIABLE_DB_USER
public static final int VARIABLE_DB_PASSWORD
public static final int VARIABLE_DB_SESSIONNAME
| Constructor Detail |
|---|
public Tournament()
| Method Detail |
|---|
public java.util.ArrayList<Protocol> getSessions()
throws java.lang.Exception
java.lang.Exceptionpublic void resetTournament()
public java.util.ArrayList<AgentVariable> getAgentVars()
public int getNumberOfSessions()
public int getRounds()
public java.util.HashMap<java.lang.String,java.lang.Integer> getOptions()
public ProtocolRepItem getProtocol()
throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<ProfileRepItem> getProfiles()
throws java.lang.Exception
java.lang.Exception
public java.util.ArrayList<AssignedParameterVariable> getParametersOfAgent(AgentRepItem agent,
java.lang.String name)
agent - the agent you want the parameters ofname - the name of this unique instantiation of the agent. Typically AgentA and AgentB.
public java.util.ArrayList<TournamentVariable> getVariables()
public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.ArrayList<AgentVariable> getDecoupledAgentVars()
public java.util.ArrayList<BOAagentInfo> getBOAagentA()
public java.util.ArrayList<BOAagentInfo> getBOAagentB()
public void setBOAagentA(java.util.ArrayList<BOAagentInfo> BOAagentList)
public void setBOAagentB(java.util.ArrayList<BOAagentInfo> BOAagentList)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||